package org.github.manx98.jlibhac.common.keys;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 0:08
 */
public enum KeyType {
    Common(1),
    Device(1 << 1),
    Root(1 << 2),
    Seed(1 << 3),
    Derived(1 << 4),

    /// <summary>Specifies that a seed is different in prod and dev.</summary>
    DifferentDev(1 << 5),
    CommonRoot(Common.value | Root.value),
    CommonSeed(Common.value | Seed.value),
    CommonSeedDiff(Common.value | Seed.value | DifferentDev.value),
    CommonDrvd(Common.value | Derived.value),
    DeviceRoot(Device.value | Root.value),
    DeviceDrvd(Device.value | Derived.value);
    public final int value;

    KeyType(int value) {
        this.value = value;
    }
}
